<h1>Listing calendar_items</h1>

<table>
  <tr>
    <th>Title</th>
    <th>Description</th>
    <th>Start date</th>
    <th>End date</th>
    <th>Capacity</th>
  </tr>

<% for calendar_item in @calendar_items %>
  <tr>
    <td><%=h calendar_item.title %></td>
    <td><%=h calendar_item.description %></td>
    <td><%=h calendar_item.start_date %></td>
    <td><%=h calendar_item.end_date %></td>
    <td><%=h calendar_item.capacity %></td>
    <td><%= link_to 'Show', calendar_item %></td>
    <td><%= link_to 'Edit', edit_calendar_item_path(calendar_item) %></td>
    <td><%= link_to 'Destroy', calendar_item, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New calendar_item', new_calendar_item_path %>
